package ldh.im.fxbase.richtext.item;

import org.fxmisc.richtext.model.NodeSegmentOpsBase;

public class FileTextItemOps extends NodeSegmentOpsBase<FileTextItem, Void> {

    public FileTextItemOps() {
        super(new FileTextItem());
    }

    @Override
    public int length(FileTextItem textItem) {
        return textItem.isNull() ? 0 : 1;
    }

}
